/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace DaveSexton.DocProject
{
	/// <summary>
	/// Provides an <see cref="Source"/> argument for an event.
	/// </summary>
	[Serializable]
	public class SourceEventArgs : EventArgs
	{
		#region Public Properties
		public Source Source
		{
			get
			{
				return source;
			}
		}
		#endregion

		#region Private / Protected
		private readonly Source source;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="SourceEventArgs" /> class.
		/// </summary>
		public SourceEventArgs(Source source)
		{
			if (source == null)
				throw new ArgumentNullException("source");

			this.source = source;
		}
		#endregion
	}
}
